package com.xuecheng.manage_cms.dao;

import com.xuecheng.framework.domain.cms.CmsPage;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @author gongfeiyue
 * @date 2020/5/18 11:22
 * @Description
 */
public interface CmsPageRepository extends MongoRepository<CmsPage,String> {

  //根据页面名称查询
  CmsPage findByPageName(String pageName);
   /* //根据页面名称和类型查询
    CmsPage findByPageNameAndPageType(String pageName,String pageType);
    //根据站点和页面类型查询记录数
    int countBySiteIdAndPageType(String siteId,String pageType);
    //根据站点和页面类型分页查询
    Page<CmsPage> findBySiteIdAndPageType(String siteId, String pageType, Pageable pageable);*/

  //根据页面名称、站点id、页面访问路径查询
  CmsPage findByPageNameAndSiteIdAndPageWebPath(String pageName,String siteId,String pageWebPath);


}
